{# Actions for list-style template card. Expects `template` in context. #}
<div class="template-actions">
    <button type="button" class="btn btn-outline-primary btn-custom btn-sm use-template-btn" 
            data-template-id="{{ template.id }}">
        <i class="fas fa-play me-1"></i>使用模板
    </button>

    <button type="button" class="btn btn-outline-info btn-custom btn-sm duplicate-template-btn" 
            data-template-id="{{ template.id }}"
            data-template-name="{{ template.name }}">
        <i class="fas fa-copy me-1"></i>复制
    </button>

    {% if template.created_by == request.user %}
        <button type="button" class="btn btn-outline-warning btn-custom btn-sm edit-template-btn btn-template-action" 
                data-action="edit"
                data-template-id="{{ template.id }}">
            <i class="fas fa-edit me-1"></i>编辑
        </button>
        <button type="button" class="btn btn-outline-danger btn-custom btn-sm delete-template-btn" 
                data-template-id="{{ template.id }}"
                data-template-name="{{ template.name }}">
            <i class="fas fa-trash me-1"></i>删除
        </button>
    {% endif %}
</div>
